home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / files.fmt / man.man < prev    next >
Encoding:
Text File  |  1989-05-28  |  13.1 KB  |  333 lines

  1.  
  2.  
  3.  
  4. man                       File Formats                        man
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NNAAMMEE
  11.      man - Ditroff macros for writing manual entries
  12.  
  13. _________________________________________________________________
  14.  
  15.  
  16. IINNTTRROODDUUCCTTIIOONN
  17.      Manual entries in Sprite are formatted with the ddiittrrooffff pro-
  18.      gram  using  the  --mmaann macros.  This manual entry summarizes
  19.      the features provided by the --mmaann macros.  For more  general
  20.      information on how to write manual entries for Sprite, refer
  21.      to _T_h_e  _S_p_r_i_t_e  _E_n_g_i_n_e_e_r_i_n_g  _M_a_n_u_a_l.   Templates  of  manual
  22.      entries for programs and library procedures are available in
  23.      //sspprriittee//lliibb//ffoorrmmss//ccmmdd..mmaann   and    //sspprriittee//lliibb//ffoorrmmss//lliibb..mmaann
  24.      respectively.
  25.  
  26.  
  27. MMAACCRROOSS
  28.      The --mmaann macros are:
  29.  
  30.      ..AAPP _t_y_p_e _n_a_m_e _i_n_O_u_t [_i_n_d_e_n_t]
  31.           Argument paragraph.  The _t_y_p_e, _n_a_m_e,  and  _i_n_O_u_t  argu-
  32.           ments  give information about this argument:  its type,
  33.           its name, and a string indicating how the  argument  is
  34.           used.  _I_n_O_u_t must be either iinn (meaning the argument is
  35.           used by the procedure but is not used to modify  infor-
  36.           mation  in the caller's memory), oouutt (meaning the argu-
  37.           ment points to information in the caller's memory which
  38.           the procedure modifies without ever reading), or iinn//oouutt
  39.           (meaning the argument  points  to  information  in  the
  40.           caller's  memory  which is both read and written by the
  41.           procedure).  Text following the  ..AAPP  line  provides  a
  42.           short  description of the argument: it will be indented
  43.           to appear to the right of _t_y_p_e, _n_a_m_e,  and  _i_n_O_u_t.   If
  44.           _i_n_d_e_n_t  is  specified, it determines the indentation of
  45.           the following text in ens;  however, this  argument  is
  46.           normally omitted, in which case a reasonable default is
  47.           picked.  In a sequence of argument  descriptions,  each
  48.           with  its  own  ..AAPP  call,  the  _t_y_p_e, _n_a_m_e, _i_n_O_u_t, and
  49.           description parts will be lined up in columns.  The ..AASS
  50.           macro may be used to size the columns.
  51.  
  52.      ..AASS _t_y_p_e _n_a_m_e
  53.           Set argument sizes for ..AAPP.  _T_y_p_e and _n_a_m_e specify  the
  54.           largest such arguments that will be used in a following
  55.           series of ..AAPP calls;  tab stops are set for the follow-
  56.           ing  calls  so that the _t_y_p_e and _n_a_m_e columns will line
  57.           up with adequate  spacing.   If  this  macro  is  never
  58.           invoked,  then  default  field  widths  will be chosen,
  59.           which are valid for small arguments.
  60.  
  61.      ..BB [_a_r_g_s]
  62.  
  63.  
  64.  
  65. Sprite v.1.0            February 17, 1989                       1
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. man                       File Formats                        man
  73.  
  74.  
  75.  
  76.           Print in boldface.  If any _a_r_g_s are given, then all  of
  77.           the  arguments  are  printed  in boldface (up to six of
  78.           them).  Otherwise, everything on the next line of input
  79.           is  printed  in  boldface.   In  either  case, the font
  80.           reverts to roman after the arguments or following  line
  81.           have been printed.
  82.  
  83.      ..BBEE  End boxed text.  Close off  a  box  started  previously
  84.           with ..BBSS.
  85.  
  86.      ..BBSS  Start boxed text.  Everything up to  the  matching  ..BBEE
  87.           macro  will be enclosed in a box.  This is used for the
  88.           summary boxes at the tops of manual entries.
  89.  
  90.      ..DDEE  End a display:  cancel the effects of the previous  ..DDSS
  91.           macro, returning to normal indentation and fill mode.
  92.  
  93.      ..DDSS  Start a display.  All lines up until the next ..DDEE macro
  94.           will be indented and output in no-fill mode.
  95.  
  96.      ..DDTT  Reset tabs to default spacings (every half-inch).
  97.  
  98.      ..IIPP _t_a_g [_i_n_d_e_n_t]
  99.           This is identical to ..IIPP in the --mmss macros.  It  starts
  100.           an  indented  paragraph  with ttaagg (if given) as an out-
  101.           dented tag.  If _i_n_d_e_n_t is given, it specifies how  much
  102.           the paragraph will be indented, in ens.
  103.  
  104.      ..HHPP  Start a paragraph with a hanging indent (the first line
  105.           will  be  outdented  relative  to the rest of the para-
  106.           graph).
  107.  
  108.      ..HHSS _s_e_c_t_i_o_n [_d_a_t_e [_v_e_r_s_i_o_n]]
  109.           Header for Sprite.  This macro should be used in  place
  110.           of ..TTHH for all Sprite manual entries.  It should be the
  111.           first thing in the entry's source file.  _S_e_c_t_i_o_n  indi-
  112.           cates  which  section  of the manual this entry belongs
  113.           to, and should be one of:
  114.  
  115.           aaddmmiinn       The manual entry describes  an  administra-
  116.                       tive  program  (i.e.  one  whose  binary is
  117.                       under //sspprriittee//aaddmmiinn).  Administrative  pro-
  118.                       grams are not used by normal users.
  119.  
  120.           ccmmddss        The manual  entry  describes  a  user-level
  121.                       application   program.    This  section  is
  122.                       equivalent to section 1 of UNIX manuals.
  123.  
  124.           ddaaeemmoonnss     The manual entry describes  a  daemon  pro-
  125.                       gram.   Daemons  are  programs  that run in
  126.                       background to provide various  system  ser-
  127.                       vices,  such  as  iinneettdd  or  llppdd.  They are
  128.  
  129.  
  130.  
  131. Sprite v.1.0            February 17, 1989                       2
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138. man                       File Formats                        man
  139.  
  140.  
  141.  
  142.                       normally invoked automatically at boot-time
  143.                       or  when needed, and aren't usually visible
  144.                       to ordinary users.
  145.  
  146.           ddeevv         The manual entry describes the characteris-
  147.                       tics  of a particular type of I/O device or
  148.                       pseudo-device, along with the I/O  controls
  149.                       that  may  be  applied  to  devices of that
  150.                       type.  This section is equivalent  to  sec-
  151.                       tion 4 of UNIX manuals.
  152.  
  153.           ffiilleess       The manual entry describes the format of  a
  154.                       particular file or file type.  For example,
  155.                       the manual entry you are reading is in  the
  156.                       ffiilleess  section.  This section is equivalent
  157.                       to section 5 of UNIX manuals.
  158.  
  159.           lliibb         The manual entry describes one or more pro-
  160.                       cedures in one of the standard C libraries.
  161.                       This section is equivalent to the  combina-
  162.                       tion of sections 2 and 3 of UNIX manuals.
  163.  
  164.           ttccll         The manual entry describes one or more pro-
  165.                       cedures   from  the  Tcl  command  language
  166.                       library.
  167.  
  168.           The _d_a_t_e argument to ..HHSS is optional and specifies  the
  169.           date  on which the entry (or its corresponding program)
  170.           was last modified.  The _v_e_r_s_i_o_n  argument  is  optional
  171.           and  specifies  the Sprite version number corresponding
  172.           to this version  of  the  manual  entry.   The  current
  173.           default is ``1.0''.
  174.  
  175.      ..II [_a_r_g_s]
  176.           Print in italics.  If any _a_r_g_s are given, then  all  of
  177.           the  arguments  are  printed  in  italics (up to six of
  178.           them).  Otherwise, everything on the next line of input
  179.           is  printed  in  italics.   In  either  case,  the font
  180.           reverts to roman after the arguments or following  line
  181.           have been printed.
  182.  
  183.      ..LLGG [_a_r_g_s]
  184.           Print in a larger font.  If any _a_r_g_s  are  given,  then
  185.           all  of  the arguments are printed in a larger font (up
  186.           to six of them).  Otherwise,  everything  on  the  next
  187.           line  of  input is printed in a larger font.  In either
  188.           case, the font reverts to normal size after  the  argu-
  189.           ments or following line have been printed.
  190.  
  191.      ..LLPP  Start a new paragraph.  Same as ..PPPP.
  192.  
  193.      ..PPDD _d_i_s_t_a_n_c_e
  194.  
  195.  
  196.  
  197. Sprite v.1.0            February 17, 1989                       3
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204. man                       File Formats                        man
  205.  
  206.  
  207.  
  208.           Set the spacing between paragraphs to _d_i_s_t_a_n_c_e.
  209.  
  210.      ..PPPP  Start a new paragraph.
  211.  
  212.      ..RREE [_l_e_v_e_l]
  213.           End right-shifted text, moving  the  indentation  level
  214.           back  to  its previous level.  Normally, each ..RRSS moves
  215.           the indentation back one level (in the case  of  nested
  216.           ..RRSS  calls).   However, if _l_e_v_e_l is specified, it gives
  217.           the index of the nesting level from  which  to  return.
  218.           For  example,  ..RRSS  33  says  to return from 3 levels of
  219.           nesting to 2 levels (when this call is  invoked,  there
  220.           better  be  at least three nested ..RRSS calls in effect).
  221.           ..RRSS 00 says to return from all nested ..RRSS calls.
  222.  
  223.      ..RRSS [_i_n_d_e_n_t]
  224.           Right shift.  From now on, indent all future  text  (up
  225.           to  the  matching ..RREE) by an additional amount equal to
  226.           _i_n_d_e_n_t ens.  If _i_n_d_e_n_t isn't specified,  then  use  the
  227.           current  indentation  (from the last ..TTPP or ..IIPP) as the
  228.           amount of additional indentation.  Pairs of ..RRSS and ..RREE
  229.           calls  may be nested.  The ..SSHH macro cancels all active
  230.           ..RRSS calls.
  231.  
  232.      ..SSHH _n_a_m_e [_m_o_r_e_N_a_m_e ...]
  233.           Start a new section named _n_a_m_e.  The _n_a_m_e may  actually
  234.           consist of up to six distinct arguments.
  235.  
  236.      ..SSSS _n_a_m_e [_m_o_r_e_N_a_m_e ... ]
  237.           Start a new subsection named _n_a_m_e.  The _n_a_m_e may  actu-
  238.           ally consist of up to six distinct arguments.
  239.  
  240.      ..SSMM [_a_r_g_s]
  241.           Print in a smaller font.  If any _a_r_g_s are  given,  then
  242.           all  of the arguments are printed in a smaller font (up
  243.           to six of them).  Otherwise,  everything  on  the  next
  244.           line  of input is printed in a smaller font.  In either
  245.           case, the font reverts to normal size after  the  argu-
  246.           ments or following line have been printed.
  247.  
  248.      ..TTHH _n_a_m_e _s_e_c_t_i_o_n [_d_a_t_e [_v_e_r_s_i_o_n]]
  249.           Set title and heading.  This macro is obsolete.  It  is
  250.           used  for  old  UNIX manual pages only.  For Sprite man
  251.           pages, the ..HHSS macro  should  be  used  instead.   _N_a_m_e
  252.           gives the name of the manual page, which will appear in
  253.           the upper-right and upper-left corners  of  each  page.
  254.           _S_e_c_t_i_o_n  gives  the  section  number.   _D_a_t_e  gives the
  255.           last-modified-time for the program;  if not  specified,
  256.           it defaults to blank.  _V_e_r_s_i_o_n gives the operating sys-
  257.           tem version that this manual entry corresponds to.  The
  258.           default  for  _v_e_r_s_i_o_n  varies in time;  see the ttmmaacc..aann
  259.           source file for the current value.
  260.  
  261.  
  262.  
  263. Sprite v.1.0            February 17, 1989                       4
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270. man                       File Formats                        man
  271.  
  272.  
  273.  
  274.      ..TTPP [_i_n_d_e_n_t]
  275.           Start a tagged paragraph.  The following line  contains
  276.           a  tag, and everything after that contains the contents
  277.           of the paragraph.  The tag will be printed outdented to
  278.           the  normal  left  margin,  and  the  paragraph will be
  279.           indented relative to the tag.  If _i_n_d_e_n_t is  specified,
  280.           then  the indent distance is changed to _i_n_d_e_n_t ens (the
  281.           indent distance is sticky across calls to ..TTPP  and  ..IIPP
  282.           but gets reset to a default value by ..PPPP and ..SSHH).  For
  283.           example, each of the macro descriptions in this partic-
  284.           ular manual entry was formatted using the ..TTPP macro.
  285.  
  286.      ..VVEE  End vertical sidebar.  Starting with  the  output  line
  287.           following  the current one, do not print vertical side-
  288.           bars.
  289.  
  290.      ..VVSS  Start vertical sidebar.  From now on, starting with the
  291.           current  output line, a vertical bar will appear at the
  292.           right side of all output  lines.   This  will  continue
  293.           until  the  next  ..VVEE call.  Sidebars should be used to
  294.           indicate recent changes in the manual entry.
  295.  
  296.  
  297. KKEEYYWWOORRDDSS
  298.      ditroff, format, macros, -man, manual entry
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329. Sprite v.1.0            February 17, 1989                       5
  330.  
  331.  
  332.  
  333.